package drive.RealService;

import drive.Model.Article;
import drive.Model.FavoriteRecord;
import drive.Model.FollowRelation;
import drive.Model.ReportRecord;
import org.codehaus.jettison.json.JSONException;
import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;

public interface ArticleServiceC     {

    String add(Article article, String img_url) throws JSONException, IOException;

    String findById(int articleId);

    String search(String search_data);


    @Transactional
    String favorite(FavoriteRecord favoriteRecord);


    @Transactional
    String reportArticle(ReportRecord reportRecord);

    String follow(FollowRelation followRelation);
}
